Skip to content

ci: replace Dockerized shfmt with direct binary install#291

Merged
chorrell merged 1 commit into
mainfrom
ci/native-shfmt
May 26, 2026
Merged

ci: replace Dockerized shfmt with direct binary install#291
chorrell merged 1 commit into
mainfrom
ci/native-shfmt

Conversation

@chorrell
Copy link
Copy Markdown
Owner

The mvdan/shfmt:v3 Docker image in the shfmt job is not version-pinned and triggers a docker pull on every PR run.

Replace it with a direct binary download from GitHub releases, pinned to v3.13.1 — matching the version already specified in .pre-commit-config.yaml. The shfmt flags and git diff check are unchanged.

The mvdan/shfmt:v3 Docker image is not version-pinned and requires a
docker pull on every PR. Install the shfmt binary directly from GitHub
releases instead, matching the version used in .pre-commit-config.yaml
(v3.13.1). Avoids a container pull while keeping behaviour identical.
@chorrell chorrell merged commit 15f6a02 into main May 26, 2026
3 checks passed
@chorrell chorrell deleted the ci/native-shfmt branch May 26, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant